package request

// 商品详情
type GoodsDetailReq struct {
	GoodsId int64 `json:"goods_id" form:"goods_id" binding:"required"`
}

// 商铺详情
type ShopDetailReq struct {
	GoodsId int64 `json:"goods_id" form:"goods_id" binding:"required"`
}

// 商品推荐
type GoodsPushReq struct {
}

// 一级评论添加
type ProductCommentsAdd struct {
	Id        uint64 `json:"id" form:"id"`               //主键id
	ProductId uint64 `json:"productId" form:"productId"` //商品id
	Content   string `json:"content" form:"content"`     //评论内容
	Rating    int32  `json:"rating" form:"rating"`       //评论分数
}

// 二级评论添加
type CommentReplyAdd struct {
	Id        uint64 `json:"id" form:"id"`               //主键id
	CommentId uint64 `json:"commentId" form:"commentId"` //评论id
	Content   string `json:"content" form:"content"`     //评论内容
}

// 评论展示
type CommentFind struct {
	ProductId uint64 `json:"productId" form:"productId"` //商品id
}
